package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 币种实体类
 *
 * @author 吴旭
 */
public class CurrencyEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 4299403600558588822L;
    private Long CurrencyId;
    private String CurrencyNo;
    private String CurrencySymbol;
    private String CurrencyName;
    private String IsLocalCurrency;

    public Long getCurrencyId() {
        return CurrencyId;
    }

    public String getCurrencyNo() {
        return CurrencyNo;
    }

    public String getCurrencySymbol() {
        return CurrencySymbol;
    }

    public String getCurrencyName() {
        return CurrencyName;
    }

    public String getIsLocalCurrency() {
        return IsLocalCurrency;
    }

    public void setCurrencyId(Long CurrencyId) {
        this.CurrencyId = CurrencyId;
    }

    public void setCurrencyNo(String CurrencyNo) {
        this.CurrencyNo = CurrencyNo;
    }

    public void setCurrencySymbol(String CurrencySymbol) {
        this.CurrencySymbol = CurrencySymbol;
    }

    public void setCurrencyName(String CurrencyName) {
        this.CurrencyName = CurrencyName;
    }

    public void setIsLocalCurrency(String IsLocalCurrency) {
        this.IsLocalCurrency = IsLocalCurrency;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CurrencyEntity)) {
            return false;
        }

        final CurrencyEntity that = (CurrencyEntity) o;

        return new EqualsBuilder()
            .append(this.getCurrencyId(), that.getCurrencyId())
            .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getCurrencyId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
